package com.ruoyi.project.note.domain.Vo;

import com.ruoyi.project.note.domain.Note;
import com.ruoyi.project.note.domain.Notebook;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

public class NotebookVo extends Notebook {
    private List<Note> noteList;

    public List<Note> getNoteList() {
        return noteList;
    }

    public void setNoteList(List<Note> noteList) {
        this.noteList = noteList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("notebookId", getNotebookId())
                .append("notebookName", getNotebookName())
                .append("userId", getUserId())
                .append("username", getUsername())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("noteNum", getNoteNum())
                .append("noteList",getNoteList())
                .toString();
    }
}
